[NTG-context] Re: Pass string into text background graphic

2023-08-13 Thread Thangalin
Hi again, you could remove the \localcontrolled around the advance > I thought I tried that, but the counter incremented to 6, instead of 4. Using higher-level primitives seems more like the ConTeXt way. > why twice ? you only have to typeset the text once, right? > > >

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Hans Hagen via ntg-context
On 8/12/2023 7:19 PM, Thangalin wrote: Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and nothing would

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Thangalin
Thanks Hans. The \newinteger approach would always increment the value, regardless of conditionals within the MetaPost code (i.e., it was like legend := "\ConcurrentTextGet" would always invoke the macro just be referencing the MPgraphic and nothing would prevent its execution). This meant that

[NTG-context] Re: Pass string into text background graphic

2023-08-11 Thread Hans Hagen
variables is that currently we cannot bind a "current" value so I need to think a bit about it. Maybe the solution here, a bit more robust is one. One can actually pass variables with a graphic but again, these are then overwritten by a later one. In lmtx we have a few bett

[NTG-context] Pass string into text background graphic

2023-08-11 Thread Thangalin
Hi list, I'm attempting to make a stylized border around paragraphs that can span pages. The border runs along the side and the top. (Ideally the top border wouldn't repeat, but that's a minor issue.) The issue I'm having is that the title for the text doesn't always appear. Instead, there's a

Re: [NTG-context] text surrounding graphic in columns

2020-10-15 Thread Jan U. Hasecke
Thanks a lot for this hint, Hans! On 15.10.20 09:15, Hans Hagen wrote: > \starttext > > \setupbodyfont[plex,10pt] > \setupalign[tolerant,stretch] > \useMPlibrary[dum] > > \startpagecolumns[n=2] >     \dorecurse {10} { >     \startplacefigure[location={left,none}] >    

Re: [NTG-context] text surrounding graphic in columns

2020-10-15 Thread Herbert Voss
Am 15.10.20 um 09:15 schrieb Hans Hagen: experimental (already there for a while but i need top pickup on it): \starttext \setupbodyfont[plex,10pt] \setupalign[tolerant,stretch] \useMPlibrary[dum] \startpagecolumns[n=2]     \dorecurse {10} {     \startplacefigure[location={left,none}]  

Re: [NTG-context] text surrounding graphic in columns

2020-10-15 Thread Jan U. Hasecke
Thanks Hraban! On 14.10.20 19:36, Henning Hraban Ramm wrote: >> how can I get a graphic that floats left or right from the text in >> columns or columnsets? > > You can’t, sorry. I feared that. I changed my layout a bit and us

Re: [NTG-context] text surrounding graphic in columns

2020-10-15 Thread Hans Hagen
On 10/14/2020 6:58 PM, Jan U. Hasecke wrote: Hi, how can I get a graphic that floats left or right from the text in columns or columnsets? \starttext \startcolumns[2] \placefigure[left, high, none]{} {\externalfigure[dummy][width=3em]} \input ward \input ward \stopcolumns

[NTG-context] text surrounding graphic in columns

2020-10-14 Thread Jan U. Hasecke
Hi, how can I get a graphic that floats left or right from the text in columns or columnsets? \starttext \startcolumns[2] \placefigure[left, high, none]{} {\externalfigure[dummy][width=3em]} \input ward \input ward \stopcolumns \blank \placefigure[left, high, none

Re: [NTG-context] text surrounding graphic in columns

2020-10-14 Thread Henning Hraban Ramm
> Am 14.10.2020 um 18:58 schrieb Jan U. Hasecke : > > how can I get a graphic that floats left or right from the text in > columns or columnsets? You can’t, sorry. Hraban ___ If your question is

Re: [NTG-context] Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe

2020-08-16 Thread Keith McKay
Thanks Taco! I have been playing about with an example from this site https://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html which was originally for a square and I obviously didn't get my angles right. Thanks for spotting it. I'm beginning to appreciate where the Fun in MetaFun

Re: [NTG-context] Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe

2020-08-15 Thread Taco Hoekwater
Hi Keith, It took me a while before I saw it, but I think you wanted to type in z0 = (60,60); z1 = z0 rotated 120; z2 = z0 rotated 240; instead of z0 = (60,60); z1 = z0 rotated 120; z2 = z1 rotated 240; because the latter puts z2 at z0, resulting in a path that is a straight

[NTG-context] Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe

2020-08-15 Thread Keith McKay
Dear List I have come across a problem which I don't think is due to ConTeXt but I'm hopping the great and the good of this list may be able to explain what is going on. The code below produces an MPpage with a shaded background and two graphics along with a line of outlined text. When I

Re: [NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Jan U. Hasecke
Thanks a lot Wolfgang and Marco. :-) juh Am 08.02.19 um 12:57 schrieb Wolfgang Schuster: > > > Jan U. Hasecke schrieb am 08.02.19 um 12:36: >> Hi all, >> >> I make my first steps with Metapost. >> >> I would like to set the background of all page

Re: [NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Wolfgang Schuster
Jan U. Hasecke schrieb am 08.02.19 um 12:36: Hi all, I make my first steps with Metapost. I would like to set the background of all pages to a Metapost graphic. But only the first page has the defined background. I also tried with \startuseMPgraphic with no success --- mwe

Re: [NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Marco Patzer
On Fri, 8 Feb 2019 12:36:16 +0100 "Jan U. Hasecke" wrote: > \definelayer[kreisbackground][width=70mm,height=70mm] \definelayer[kreisbackground][width=70mm,height=70mm, state=repeat] start: layer appears only on the current page stop : layer doesn't show up repeat : layer prints on

[NTG-context] Metapost graphic in setupbackground

2019-02-08 Thread Jan U. Hasecke
Hi all, I make my first steps with Metapost. I would like to set the background of all pages to a Metapost graphic. But only the first page has the defined background. I also tried with \startuseMPgraphic with no success --- mwe --- \startreusableMPgraphic{kreis} draw fullcircle scaled

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Keith McKay
Thanks dr. Hans! It certainly will. Best Wishes Keith On 05/04/2018 19:55, dr. Hans van der Meer wrote: Maybe this script could help a bit too. Use with following code scheme in ConTeXt: \starttex t\startMPpage % Your Metapost/metafun code here \stopMPpage \stoptext It will produce a

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread dr. Hans van der Meer
Maybe this script could help a bit too.  mpone Description: Binary data Use with following code scheme in ConTeXt:\starttext\startMPpage% Your Metapost/metafun code here\stopMPpage\stoptextIt will produce a standalone image in a pdf. dr. Hans van der Meer On 5 Apr 2018, at 18:45, Keith McKay

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Keith McKay
Thanks Nicola and Alan. I'll look into that. Best Wishes Keith On 05/04/2018 17:42, Nicola wrote: On 05/04/2018 18:24, Alan Braslau wrote: On Thu, 5 Apr 2018 15:28:34 +0100 Keith McKay wrote: I use a mac-mini and it seems that mupdf, of which mutools is part off,

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Nicola
On 05/04/2018 18:24, Alan Braslau wrote: On Thu, 5 Apr 2018 15:28:34 +0100 Keith McKay wrote: I use a mac-mini and it seems that mupdf, of which mutools is part off, does not have a macOS version, or I would have to build from source. However it looks like I can use

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Alan Braslau
On Thu, 5 Apr 2018 15:28:34 +0100 Keith McKay wrote: > I use a mac-mini and it seems that mupdf, of which mutools is part > off, does not have a macOS version, or I would have to build from > source. However it looks like I can use Inkscape with a wee bit > thought to do

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Keith McKay
. On looking at the Metapost manual I see you can using the following commands save a graphic as an svg file. forget about producing svg this way ... (1) it would not work with fonts, and (2) mplib in luatex has svg and png output disabled. % file: mpsvg.tex \startMPpage     draw textext("

Re: [NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Hans Hagen
can using the following commands save a graphic as an svg file. forget about producing svg this way ... (1) it would not work with fonts, and (2) mplib in luatex has svg and png output disabled. % file: mpsvg.tex \startMPpage draw textext("Does it work?") ; draw b

[NTG-context] Saving Metafun Graphic for use outside ConTeXt

2018-04-05 Thread Keith McKay
a graphic as an svg file. /outputformat := "svg"; / /outputtemplate := "test.svg";/ // I have tried adding this to some MPcode in a ConteXt document but these lines seem to be ignored since no svg file is produced apart from the usual ConTeXt files. Is this expected behavio

Re: [NTG-context] Center horizontally and vertically a table with a graphic in a paragraph environment

2015-01-10 Thread Fabrice
You're right Pablo. Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage :

Re: [NTG-context] Center horizontally and vertically a table with a graphic in a paragraph environment

2015-01-09 Thread Fabrice
Hi Pablo, Thank you for your cooperation. That's what I want except the frame. Fabrice ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Center horizontally and vertically a table with a graphic in a paragraph environment

2015-01-09 Thread Pablo Rodriguez
On 01/09/2015 02:23 PM, Fabrice Couvreur wrote: Hi, Is it possible to center horizontally and vertically the table with the graphics? Hi Fabrice, adding an xtable might do what you want (but unless you have narrower left and right margins, there is no room to fit both tables [I guess]).

Re: [NTG-context] Center horizontally and vertically a table with a graphic in a paragraph environment

2015-01-09 Thread Pablo Rodriguez
On 01/09/2015 11:36 PM, Fabrice wrote: \startxcell[frame=off] \startxtable[frame=off] seems to me a better option to remove the table frames. Pablo -- http://www.ousia.tk ___ If your question is of interest to

Re: [NTG-context] Center horizontally and vertically a table with a graphic in a paragraph environment

2015-01-09 Thread Fabrice
\startxcell[frame=off] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage :

[NTG-context] Center horizontally and vertically a table with a graphic in a paragraph environment

2015-01-09 Thread Fabrice Couvreur
Hi, Is it possible to center horizontally and vertically the table with the graphics ? Best regards, Fabrice \defineparagraphs[TwoColumns][n=2] \setupparagraphs[TwoColumns][1][width=0.45\textwidth] \startsetups[table:initialize]

Re: [NTG-context] wrong positioning of MP graphic in layer

2013-10-08 Thread Pablo Rodríguez
On 10/07/2013 10:48 PM, Hans Hagen wrote: On 10/7/2013 10:04 PM, Pablo Rodríguez wrote: [...] I need to insist on this sample, because the layer doesn’t behave as such: \definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start] \setuplayer[wrongpositioned]{\startMPcode draw

Re: [NTG-context] wrong positioning of MP graphic in layer

2013-10-08 Thread Pablo Rodríguez
On 10/07/2013 11:01 PM, luigi scarso wrote: On Mon, Oct 7, 2013 at 10:04 PM, Pablo Rodríguez wrote: I need to insist on this sample, because the layer doesn’t behave as such: \definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]

[NTG-context] wrong positioning of MP graphic in layer

2013-10-07 Thread Pablo Rodríguez
={wrongpositioned}] \starttext \input knuth \stoptext No matter what x, y, hoffset, voffset, location or corner, the MP graphic is located where the page margins start. Sorry for the so basic question, but what is wrong there? Besides that, I don’t understand how positioning in layers work. I

Re: [NTG-context] wrong positioning of MP graphic in layer

2013-10-07 Thread luigi scarso
)--(14mm,38mm) ; \stopMPcode} \setupbackgrounds[page][background={wrongpositioned}] \starttext \input knuth \stoptext No matter what x, y, hoffset, voffset, location or corner, the MP graphic is located where the page margins start. Sorry for the so basic question, but what

Re: [NTG-context] wrong positioning of MP graphic in layer

2013-10-07 Thread Pablo Rodríguez
On 10/07/2013 07:16 PM, luigi scarso wrote: On Mon, Oct 7, 2013 at 5:56 PM, Pablo Rodríguez wrote: Dear list, I have the following sample: [...] Many thanks for your reply, Luigi. I need to insist on this sample, because the layer doesn’t behave as such:

Re: [NTG-context] wrong positioning of MP graphic in layer

2013-10-07 Thread Hans Hagen
On 10/7/2013 10:04 PM, Pablo Rodríguez wrote: On 10/07/2013 07:16 PM, luigi scarso wrote: On Mon, Oct 7, 2013 at 5:56 PM, Pablo Rodríguez wrote: Dear list, I have the following sample: [...] Many thanks for your reply, Luigi. I need to insist on this sample, because the layer doesn’t

Re: [NTG-context] wrong positioning of MP graphic in layer

2013-10-07 Thread luigi scarso
On Mon, Oct 7, 2013 at 10:04 PM, Pablo Rodríguez oi...@gmx.es wrote: On 10/07/2013 07:16 PM, luigi scarso wrote: On Mon, Oct 7, 2013 at 5:56 PM, Pablo Rodríguez wrote: Dear list, I have the following sample: [...] Many thanks for your reply, Luigi. I need to insist on this

[NTG-context] flow text around graphic: lower right

2013-08-26 Thread Lars Huttar
Hi all, We have the small self-contained example below, in which text flows around a graphic. The graphic is aligned with the upper-left corner of the text paragraph (despite \setuphanging[location=right]). We would very much like to have the graphic align with the lower right corner

Re: [NTG-context] command for a MP graphic

2013-05-08 Thread Roland Thiers
Le 8 mai 13 à 06:56, Wolfgang Schuster a écrit : Am 07.05.2013 um 22:28 schrieb Roland Thiers roland.thi...@gmail.com: Thank you very much for this precision, Wolfgang. I tried with two variables and it works with this syntax : \startuniqueMPgraphic{polygoneregulier} numeric u ;

[NTG-context] command for a MP graphic

2013-05-07 Thread Roland Thiers
Hi, I did this code to get a regular polygon with metafun, it works but I would like to have an user command like \define or \def to be able to choose the number of sides, n. I don't know how to do that ... \startbuffer[largeurdeslignes] drawoptions (withpen pencircle scaled 2pt);

Re: [NTG-context] command for a MP graphic

2013-05-07 Thread Marco Patzer
On 2013–05–07 Roland Thiers wrote: Hi, I did this code to get a regular polygon with metafun, it works but I would like to have an user command like \define or \def to be able to choose the number of sides, n. I don't know how to do that ... Here's one way to do it:

Re: [NTG-context] command for a MP graphic

2013-05-07 Thread Roland Thiers
Le 7 mai 13 à 09:51, Marco Patzer a écrit : \startuniqueMPgraphic{polygoneregulier}{sides} drawoptions (withpen pencircle scaled 2pt); numeric u ; u:=1*cm ; numeric n ; n:=\MPvar{sides}; pair a[]; a[0]:=(0,3u); path polygone[] ; for i=1 upto n : a[i]:=a[0] rotatedaround(origin,i*360/n)

Re: [NTG-context] command for a MP graphic

2013-05-07 Thread Wolfgang Schuster
Am 07.05.2013 um 09:51 schrieb Marco Patzer home...@lavabit.com: On 2013–05–07 Roland Thiers wrote: Hi, I did this code to get a regular polygon with metafun, it works but I would like to have an user command like \define or \def to be able to choose the number of sides, n. I don't know

Re: [NTG-context] command for a MP graphic

2013-05-07 Thread Roland Thiers
≥ Le 7 mai 13 à 13:05, Wolfgang Schuster a écrit : Am 07.05.2013 um 09:51 schrieb Marco Patzer home...@lavabit.com: On 2013–05–07 Roland Thiers wrote: Hi, I did this code to get a regular polygon with metafun, it works but I would like to have an user command like \define or \def to be

Re: [NTG-context] command for a MP graphic

2013-05-07 Thread Wolfgang Schuster
Am 07.05.2013 um 22:28 schrieb Roland Thiers roland.thi...@gmail.com: Thank you very much for this precision, Wolfgang. I tried with two variables and it works with this syntax : \startuniqueMPgraphic{polygoneregulier} numeric u ; u:=\MPvar{unite}*cm ; numeric n ; n:=\MPvar{sides};

[NTG-context] Finding a sample-graphic: cow.pdf

2013-05-06 Thread Willi Egger
Hi all, it sound stupid but I can not figure out, why ConTeXt is not able to find the cow-picture. \useexternalfigure [Logo] [cow.pdf] [width=3cm] \starttext \externalfigure[Logo] \stoptext Kind regards Willi

Re: [NTG-context] Finding a sample-graphic: cow.pdf

2013-05-06 Thread Willi Egger
Wolfgang! Thank you so much. Willi On May 6, 2013, at 7:02 PM, Wolfgang Schuster wrote: Am 06.05.2013 um 18:47 schrieb Willi Egger cont...@boede.nl: Hi all, it sound stupid but I can not figure out, why ConTeXt is not able to find the cow-picture. \useexternalfigure [Logo]

Re: [NTG-context] [***SPAM***] File access for sourc, graphic, and pictures

2013-03-11 Thread Keith J. Schultz
Hi All, Am 08.03.2013 um 09:02 schrieb Marco Patzer home...@lavabit.com: On 2013–03–08 hwit...@gmail.com wrote: I am just learning ConTeXt, so please bare with me. In all of the documentation that I've read so far, it shows the names of imported photographs, graphs, blocks, etc as a

Re: [NTG-context] [***SPAM***] File access for sourc, graphic, and pictures

2013-03-08 Thread Marco Patzer
On 2013–03–08 hwit...@gmail.com wrote: I am just learning ConTeXt, so please bare with me. In all of the documentation that I've read so far, it shows the names of imported photographs, graphs, blocks, etc as a simple filename without any filename extensions or pathnames. Avoid hard coded

Re: [NTG-context] [***SPAM***] File access for sourc, graphic, and pictures

2013-03-08 Thread d.henman
Marko, thanks for the clear and very useful information. Marco Patzer home...@lavabit.com wrote: Avoid hard coded path names in your files, it makes them less portable. ConTeXt adds the file name extension automatically, there's usually no need to specify it manually. . Have a look

[NTG-context] [***SPAM***] File access for sourc, graphic, and pictures

2013-03-07 Thread hwitloc
I am just learning ConTeXt, so please bare with me. In all of the documentation that I've read so far, it shows the names of imported photographs, graphs, blocks, etc as a simple filename without any filename extensions or pathnames. Having a bunch of photographs anc charts files in the

[NTG-context] Creating a background texture with text/graphic

2012-10-29 Thread Mari Voipio
, rotate, shft and randomize to create a texture. Loop+shift would make a nice alternating background, randomized with loop and 90degree rotation steps would make a denser texture. The problem: I don't know how to input the logo graphic into Metapost code. This did not work, even though the pdf

Re: [NTG-context] Creating a background texture with text/graphic

2012-10-29 Thread Marco Patzer
2012-10-29 Mari Voipio: The problem: I don't know how to input the logo graphic into Metapost code. This did not work, even though the pdf is in the same directory: externalfigure vaaka-logo.pdf scaled 1cm; This works here: \startbuffer [image] \useMPlibrary [dum] \startTEXpage

Re: [NTG-context] Creating a background texture with text/graphic

2012-10-29 Thread Wolfgang Schuster
Am 29.10.2012 um 12:07 schrieb Marco Patzer home...@lavabit.com: 2012-10-29 Mari Voipio: The problem: I don't know how to input the logo graphic into Metapost code. This did not work, even though the pdf is in the same directory: externalfigure vaaka-logo.pdf scaled 1cm; This works

Re: [NTG-context] export: graphic within table (error)

2011-07-05 Thread Hans Hagen
On 4-7-2011 9:26, Christian wrote: \def\dotagfigure{\iftrialtypesetting\else\ctxcommand{...)}\fi} fixed I just discovered that it was not fixed for my Windows-Minimals (ConTeXt ver: 2011.06.18 14:13 MKIV). Adding the above line makes it work. This is fixed with my Ubuntu-Minimals.

Re: [NTG-context] export: graphic within table (error)

2011-07-04 Thread Christian
\def\dotagfigure{\iftrialtypesetting\else\ctxcommand{...)}\fi} fixed I just discovered that it was not fixed for my Windows-Minimals (ConTeXt ver: 2011.06.18 14:13 MKIV). Adding the above line makes it work. This is fixed with my Ubuntu-Minimals. I'm confused. Did I miss something

Re: [NTG-context] export: graphic url (special chars?)

2011-06-20 Thread Aditya Mahajan
On Mon, 20 Jun 2011, Reviczky, Adam wrote: Further, if the url has a % symbol then the name property stops at that, see: --- \setupbackend[export=test.xml] \enabledirectives[schemes.cleanmethod=md5] \def\googlechart {\begingroup \setcatcodetable\vrbcatcodes \dodoubleempty\dogooglechart}

[NTG-context] export: graphic url (special chars?)

2011-06-20 Thread Reviczky, Adam
You could try (untested) \def\googlechart[#1][#2]% {\externalfigure[#1][...]% \endgroup} Thanks, but it has the same result. \def\dogooglechart[#1][#2]% {\useexternalfigure[googlechart][#1]% \endgroup \externalfigure[googlechart][...]} That screws up the url in the

[NTG-context] export: graphic within table (error)

2011-06-19 Thread Reviczky, Adam
Hans, I'm getting this error if I put an image within a table using the export backend: ! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument #3 to 'format' (string expected, got boolean). Minimal example: --- \setupbackend[export=yes] \starttext %

Re: [NTG-context] export: graphic within table (error)

2011-06-19 Thread Wolfgang Schuster
Am 19.06.2011 um 12:46 schrieb Reviczky, Adam: Hans, I'm getting this error if I put an image within a table using the export backend: ! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument #3 to 'format' (string expected, got boolean). You have to wait till

Re: [NTG-context] export: graphic within table (error)

2011-06-19 Thread Hans Hagen
On 19-6-2011 1:13, Wolfgang Schuster wrote: Am 19.06.2011 um 12:46 schrieb Reviczky, Adam: Hans, I'm getting this error if I put an image within a table using the export backend: ! LuaTeX error /usr/share/texmf/tex/context/base/back-exp.lua:297: bad argument #3 to 'format' (string

[NTG-context] export: graphic url (special chars?)

2011-06-19 Thread Reviczky, Adam
Hi The following example results in a broken xml as well: -- \setupbackend[export=test.xml] \starttext \externalfigure[https://chart.googleapis.com/chart?cht=p3chs=250x100chd=t:60,40chl=Hello\letterbar World][method=png,scale=4000] \stoptext --- XML Parsing Error: not well-formed Location:

[NTG-context] customized item list symbol/graphic

2010-12-11 Thread Jan-Erik Hägglöf
HI All Contexters out there! I'm a Guy from sweden who will appreciate a possible solution to following problem. I'm interested in to do a personalized itemlist with a symbol created in metapost. Here is an example: \startuniqueMPgraphic{square} draw roundedsquare(20,20,2) withrgbcolor

Re: [NTG-context] customized item list symbol/graphic

2010-12-11 Thread Taco Hoekwater
On 12/11/2010 02:27 PM, Jan-Erik Hägglöf wrote: HI All Contexters out there! I'm a Guy from sweden who will appreciate a possible solution to following problem. I'm interested in to do a personalized itemlist with a symbol created in metapost. Here is an example: There are two small

Re: [NTG-context] customized item list symbol/graphic

2010-12-11 Thread Jan-Erik Hägglöf
On 2010-12-11 14:42, Taco Hoekwater wrote: On 12/11/2010 02:27 PM, Jan-Erik Hägglöf wrote: HI All Contexters out there! I'm a Guy from sweden who will appreciate a possible solution to following problem. I'm interested in to do a personalized itemlist with a symbol created in metapost. Here

Re: [NTG-context] customized item list symbol/graphic

2010-12-11 Thread Wolfgang Schuster
Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf: Thanks that worked but how to manage more vertical whitespace? Before and after the list you can set the vertical space with \setupitemize [before={\blank[dimension or keyword]}, after={\blank[dimension or keyword]}] and between the

Re: [NTG-context] customized item list symbol/graphic

2010-12-11 Thread Jan-Erik Hägglöf
On 2010-12-11 16:23, Wolfgang Schuster wrote: Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf: Thanks that worked but how to manage more vertical whitespace? Before and after the list you can set the vertical space with \setupitemize [before={\blank[dimension orkeyword]},

Re: [NTG-context] customized item list symbol/graphic

2010-12-11 Thread Jan-Erik Hägglöf
On 2010-12-11 17:14, Jan-Erik Hägglöf wrote: On 2010-12-11 16:23, Wolfgang Schuster wrote: Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf: Thanks that worked but how to manage more vertical whitespace? Before and after the list you can set the vertical space with \setupitemize

Re: [NTG-context] customized item list symbol/graphic

2010-12-11 Thread Wolfgang Schuster
Am 11.12.2010 um 17:14 schrieb Jan-Erik Hägglöf: None of the above setting worked for me. Even tried \startitemize[columns,2*broad][inbetween={\blank[1cm]}] With the „columns“ keyword you get also packed items, to unset this setting add „unpacked“ to your setup:

Re: [NTG-context] customized item list symbol/graphic [solved]

2010-12-11 Thread Jan-Erik Hägglöf
On 2010-12-11 18:24, Wolfgang Schuster wrote: Am 11.12.2010 um 17:14 schrieb Jan-Erik Hägglöf: None of the above setting worked for me. Even tried \startitemize[columns,2*broad][inbetween={\blank[1cm]}] With the „columns“ keyword you get also packed items, to unset this setting add

Re: [NTG-context] Creating graphic file instead of PDF

2010-11-21 Thread luigi scarso
On Sun, Nov 21, 2010 at 7:21 AM, Cecil Westerhof cldwester...@gmail.com wrote: I am making flowcharts with ConTeXt. Because the flowcharts have to be included in other documents, I would like to make graphic files (jpeg, png, ...). Also not bigger as needed to represent the flowchart. Can

Re: [NTG-context] Creating graphic file instead of PDF

2010-11-21 Thread Cecil Westerhof
2010/11/21 luigi scarso luigi.sca...@gmail.com: I am making flowcharts with ConTeXt. Because the flowcharts have to be included in other documents, I would like to make graphic files (jpeg, png, ...). Also not bigger as needed to represent the flowchart. Can this be done. Just convert the pdf

Re: [NTG-context] Creating graphic file instead of PDF

2010-11-21 Thread luigi scarso
On Sun, Nov 21, 2010 at 10:07 AM, Cecil Westerhof cldwester...@gmail.com wrote: 2010/11/21 luigi scarso luigi.sca...@gmail.com: I am making flowcharts with ConTeXt. Because the flowcharts have to be included in other documents, I would like to make graphic files (jpeg, png, ...). Also

Re: [NTG-context] Creating graphic file instead of PDF

2010-11-21 Thread Cecil Westerhof
2010/11/21 luigi scarso luigi.sca...@gmail.com: I am making flowcharts with ConTeXt. Because the flowcharts have to be included in other documents, I would like to make graphic files (jpeg, png, ...). Also not bigger as needed to represent the flowchart. Can this be done. Just convert the pdf

Re: [NTG-context] Creating graphic file instead of PDF

2010-11-21 Thread luigi scarso
On Sun, Nov 21, 2010 at 10:38 AM, Cecil Westerhof cldwester...@gmail.com wrote: 2010/11/21 luigi scarso luigi.sca...@gmail.com: I am making flowcharts with ConTeXt. Because the flowcharts have to be included in other documents, I would like to make graphic files (jpeg, png, ...). Also

[NTG-context] Creating graphic file instead of PDF

2010-11-20 Thread Cecil Westerhof
I am making flowcharts with ConTeXt. Because the flowcharts have to be included in other documents, I would like to make graphic files (jpeg, png, ...). Also not bigger as needed to represent the flowchart. Can this be done. -- Cecil Westerhof

Re: [NTG-context] Creating graphic file instead of PDF

2010-11-20 Thread Vnpenguin
to make graphic files (jpeg, png, ...). Also not bigger as needed to represent the flowchart. Can this be done. -- Cecil Westerhof ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] tikz fading graphic

2010-09-08 Thread Peter Rolf
Am 07.09.2010 20:09, schrieb Yury G. Kudryashov: Peter Rolf wrote: Hi, this is the first time I use tikz and maybe something is missing in my example. I tried the second graphic from page 206 of the tikz manual. Sadly I only get a opaque blue square. Example and log file attached

[NTG-context] tikz fading graphic

2010-09-07 Thread Peter Rolf
Hi, this is the first time I use tikz and maybe something is missing in my example. I tried the second graphic from page 206 of the tikz manual. Sadly I only get a opaque blue square. Example and log file attached. I get the same error for both marks: [..] (./tikz206.tuo) systems : begin

Re: [NTG-context] tikz fading graphic

2010-09-07 Thread Yury G. Kudryashov
Peter Rolf wrote: Hi, this is the first time I use tikz and maybe something is missing in my example. I tried the second graphic from page 206 of the tikz manual. Sadly I only get a opaque blue square. Example and log file attached. Package tikz: Error! You need to say \usetikzlibrary

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread Taco Hoekwater
Vianney le Clément wrote: Hello, I'm having some trouble with a macro using \processaction inside a metapost graphic. Here is a minimal example. \def\Shape#1% {\processaction[#1] [square=unitsquare, circle=unitcircle]} \starttext \startuseMPgraphic{test} fill \Shape{square} scaled

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread Vianney le Clément
On Thu, May 13, 2010 at 09:30, Taco Hoekwater t...@elvenkind.com wrote: Like many of the more complex commands, \processaction does not expand totally. If you are using mkiv, you could define \Shape like this: \def\Shape#1%  {\directlua{     local known = {square = 'unitsquare', circle =

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread luigi scarso
2010/5/13 Vianney le Clément vleclem...@gmail.com: On Thu, May 13, 2010 at 09:30, Taco Hoekwater t...@elvenkind.com wrote: Like many of the more complex commands, \processaction does not expand totally. If you are using mkiv, you could define \Shape like this: \def\Shape#1%  {\directlua{  

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread Hans Hagen
On 13-5-2010 11:13, luigi scarso wrote: \setevalue{square}{unitsquare} \setevalue{circle}{unitcircle} \starttext \startuseMPgraphic{test} fill \getvalue{square} scaled 1cm; \stopuseMPgraphic \useMPgraphic{test} \stoptext or \setevalue{mynamespace:square}{unitsquare}

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread Vianney le Clément
\getparameters[Shape][square={unitsquare },                     circle={unitcircle }] \starttext \startuseMPgraphic{test} fill \Shapesquare  scaled 1cm; \stopuseMPgraphic \useMPgraphic{test} \stoptext This one's very nice. Thanks. Vianney

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread luigi scarso
2010/5/13 Vianney le Clément vleclem...@gmail.com: \getparameters[Shape][square={unitsquare },                     circle={unitcircle }] \starttext \startuseMPgraphic{test} fill \Shapesquare  scaled 1cm; \stopuseMPgraphic \useMPgraphic{test} \stoptext This one's very nice. Thanks.

Re: [NTG-context] processaction inside MP graphic

2010-05-13 Thread Vianney le Clément
becareful at the spaces at the end, ie \getparameters[Shape][square={unitsquare},                    circle={unitcircle}] doesn't work. That's logical, because \Shapesquare eats the spaces following it. In my case, I define my macros like \getparameters[Shape:] [square=unitsquare,

[NTG-context] processaction inside MP graphic

2010-05-12 Thread Vianney le Clément
Hello, I'm having some trouble with a macro using \processaction inside a metapost graphic. Here is a minimal example. \def\Shape#1% {\processaction[#1] [square=unitsquare, circle=unitcircle]} \starttext \startuseMPgraphic{test} fill \Shape{square} scaled 1cm; \stopuseMPgraphic

[NTG-context] Placing MP graphic without line breaks

2009-09-11 Thread Vyatcheslav Yatskovsky
Another question arises. The following produces grids in a column (i.e. with line breaks). How to place MP graphics like words, in a row? \starttext \startuseMPgraphic{cg} drawoptions(withpen pencircle scaled 0.1pt withcolor black) ; draw hlingrid(0, 6, 1, 0.8cm, 1cm) ; draw vlingrid(0, 4, 1,

Re: [NTG-context] Placing MP graphic without line breaks

2009-09-11 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote: Another question arises. The following produces grids in a column (i.e. with line breaks). How to place MP graphics like words, in a row? \starttext \startuseMPgraphic{cg} drawoptions(withpen pencircle scaled 0.1pt withcolor black) ; draw hlingrid(0, 6, 1, 0.8cm,

Re: [NTG-context] \doifelse inside MP(code|graphic)

2008-11-18 Thread Taco Hoekwater
Aditya Mahajan wrote: Notice the first line of \ascii, and compare that with the definition of \doifelse. The command \!!stringa inside the definition of \doifelse gets expanded too soon. Is there any way to get this work, other than doing the comparison outside the MP code. Not with

Re: [NTG-context] \doifelse inside MP(code|graphic)

2008-11-18 Thread Hans Hagen
Taco Hoekwater wrote: Aditya Mahajan wrote: Notice the first line of \ascii, and compare that with the definition of \doifelse. The command \!!stringa inside the definition of \doifelse gets expanded too soon. Is there any way to get this work, other than doing the comparison outside the MP

Re: [NTG-context] \doifelse inside MP(code|graphic)

2008-11-18 Thread Aditya Mahajan
On Tue, 18 Nov 2008, Hans Hagen wrote: Taco Hoekwater wrote: Aditya Mahajan wrote: Notice the first line of \ascii, and compare that with the definition of \doifelse. The command \!!stringa inside the definition of \doifelse gets expanded too soon. Is there any way to get this work, other

[NTG-context] \doifelse inside MP(code|graphic)

2008-11-17 Thread Aditya Mahajan
Hi, \doifelse does not work inside any MP environment. Something really strange happens if you try to use it. \loggingall tells me what exactly is happening, but I do not know enough low-level TeX to understand why this is happening. Conside this test file %--

Re: [NTG-context] [OT] suggestion for books on (typo)graphic design

2008-02-21 Thread Andrea Valle
there are some of the most competent people I know on the topic. I will start a course on graphic communication. The students are ground-zero programmers, all on mac, so I would like to use Nodebox (http://nodebox.net/). (Unluckily no time/space to introduce ConTeXt). I will focus on data visualization

Re: [NTG-context] [OT] suggestion for books on (typo)graphic design

2008-02-21 Thread Idris Samawi Hamid
:07 -0700, Andrea Valle [EMAIL PROTECTED] wrote: Hi to all and sorry for the OT, but here on the list there are some of the most competent people I know on the topic. I will start a course on graphic communication. The students are ground-zero programmers, all on mac, so I would like to use

Re: [NTG-context] [OT] suggestion for books on (typo)graphic design

2008-02-21 Thread John Luciani
On Thu, Feb 21, 2008 at 5:00 AM, Andrea Valle [EMAIL PROTECTED] wrote: Hi to all and sorry for the OT, but here on the list there are some of the most competent people I know on the topic. I will start a course on graphic communication. The students are ground-zero programmers, all on mac

Re: [NTG-context] [OT] suggestion for books on (typo)graphic design

2008-02-21 Thread Andrea Valle
You mean this, I guess: http://bloggingbits.com/54-typography-resources-every-designer-should- bookmark/ Thanks! -a- On 21 Feb 2008, at 17:22, Jeff Smith wrote: Great links and tips there, but last week I also found this. It's called 54 Typography Resources Every Designer Should Bookmark.

  1   2   >